package IO;


import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class IO_Demo11 {
    public static void main(String[] args) {
//        字符流输入文件
        try(Writer writer = new FileWriter("./test2.txt",true)){
            String s="赵家兴真牛";
            writer.write(s);
        }catch (IOException e){
            throw new RuntimeException(e);
        }
    }
}